<?php

namespace app\common\model;

use think\Model;

class BaseModel extends Model
{
    public function add($data)
    {
        $data['status'] = config('code.status_normal');
        $this->save($data);
        return $this->id;
    }
}
